Method and apparatus for estimating and correcting gain and phase imbalance in a code division multiple access system

ABSTRACT

Gain and phase imbalance is estimated by using an IQ-swapped spreading sequence in addition to a regular spread pilot signal. The IQ-swapped spreading sequence is the spreading sequence whose real and imaginary components are the imaginary and real components of the regular spreading sequence. The gain imbalance can be estimated by a function of the difference between the real component of a regular despread pilot signal and the imaginary component of the IQ-swapped pilot signal. In a similar fashion, the phase imbalance is estimated by a function of the difference between the imaginary component of a regular despread pilot signal and the real component of the IQ-swapped despread pilot signal. A controller such as a DSP ( 102 ) uses the gain and phase imbalance estimates to control a gain and phase correction circuit ( 104 ). In one embodiment, the correction circuit ( 104 ) includes a plurality of multipliers ( 202 - 212 ) and a ROM look-up-table ( 202 ) in order to perform the imbalance correction.

TECHNICAL FIELD

[0001] This invention relates in general to the field of radio communications and more specifically to a method and apparatus for estimating and correcting the gain and phase imbalance in a Code Division Multiple Access (CDMA) system.

BACKGROUND

[0002] In next generation wireless devices, the direct conversion or Zero Intermediate Frequency (ZIF) architecture is the preferred radio architecture. Direct conversion techniques not only allow for flexible channel spacing and multi-band operation, with filtering performed at baseband. But more importantly, it does not require some components that increase the overall size of a transceiver, particularly those components associated with IF filtering.

[0003] The practical implementation of a ZIF radio is by no means trivial. There are a number of design problems associated with the architecture. One of the problems is the amplitude and phase mismatch, also known as IQ (In-phase and quadrature) imbalance problem, in the two arms of a quadrature demodulator. Although this IQ imbalance problem also exists in the superheterodyne receiver, it is more problematic in the direct conversion receiver because the direct conversion receiver requires high baseband gain. The IQ imbalance distorts the received signal quality by introducing additional noise to the signal and confusing receiver signal processing functions such as channel estimation and automatic frequency control.

[0004] In a CDMA or spread spectrum communication system based on a direct sequence, it is not trivial to estimate the IQ imbalance because a CDMA signal is very weak compared to ambient interference or noise. And because the receiver sequence despreading operation scrambles the IQ imbalance vector. One prior art approach has used a decision-directed adaptive algorithm in the receiver to correct the distortion of the signal constellation. While a second prior art approach uses a plurality of phase-demodulating ports to oversample the signal in the phase domain. By measuring the correlation among those phase-oversampled signals, the receiver can correct the IQ imbalance by signal reconstruction. Both of these approaches are not designed for direct sequence CDMA signals. In a CDMA system, a spread spectrum signal has a very low signal-to-noise ratio, and the prior art approaches based on adaptive schemes are not robust enough and not usable. These mentioned prior art approaches also add extra cost and/or introduce noise to the system. A need thus exist in the art for a method and apparatus for estimating and correcting the gain and phase imbalance that can overcome some of the problems mentioned above.

BRIEF DESCRIPTION OF THE DRAWINGS

[0005] The features of the present invention, which are believed to be novel, are set forth with particularity in the appended claims. The invention, may best be understood by reference to the following description, taken in conjunction with the accompanying drawings, in the several figures of which like reference numerals identify like elements, and in which:

[0006]FIG. 1 shows a block diagram of a receiver in accordance with the invention.

[0007]FIG. 2 shows a gain and phase correction block in accordance with the invention.

[0008]FIG. 3 shows a graph showing mean of the gain offset estimator versus true gain offset.

[0009]FIG. 4 shows a graph showing mean of the phase offset estimator versus true phase offset.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0010] While the specification concludes with claims defining the features of the invention that are regarded as novel, it is believed that the invention will be better understood from a consideration of the following description in conjunction with the drawing figures.

[0011] This invention presents a method and apparatus for compensating for the IQ imbalance in a direct sequence CDMA systems by digital signal processing and thus enabling the direct conversion receiver to convert a spread spectrum passband signal to a clean digital baseband signal without incurring much extra noise. This invention eases the IQ offset requirement on RF and analog chips and lowers the cost of a mobile receiver.

[0012] Most CDMA systems provide a pilot signal. This invention estimates the gain and phase imbalance by monitoring the constellation of the despread pilot signal because despreading gives processing gain and boosts up the quality of the pilot signal. The pilot constellation is distorted by the gain and phase imbalance. The despread pilot signal is not however sufficient to determine both gain and phase imbalance because the receiver is not aware of the actual pilot strength or amplitude. Given this, the present invention uses the IQ-swapped spreading sequence in addition to the regular spread pilot. The IQ-swapped spreading sequence is the spreading sequence whose real and imaginary components are the real and imaginary components of the regular spreading sequence as shown in the attached figure. As proved in the attached sheet, the gain imbalance can be estimated by a function of the real component of the pilot symbol despread by the normal spreading sequence and the imaginary component of the pilot symbol despread by the IQ-swapped spreading sequence. In a similar fashion, the phase imbalance can be estimated by a function of the pilot symbol despread by the normal sequence and the pilot symbol despread by the IQ-swapped spreading sequence.

[0013] Since the IQ imbalance varies extremely slowly, in the preferred embodiment a communication receiver 100 as shown in FIG. 1 includes a controller such as a digital signal processor 102 that averages or filters the estimates over a long period in order to get a good measurement. The digital signal processor 102 uses the estimates to control the correction block 104 using gain and phase error control signals 106. In the preferred embodiment, the correction block 104 performs four real multiplications in essence implementing a 2-by-2 matrix.

[0014] Receiver 100 includes an radio frequency and analog front-end section 108 and a digital baseband section 110. The front-end section 108 includes a direct conversion receiver block 112 and an analog-to-digital (A/D) converter 114 which converts the analog output from the direct conversion receiver block 112 and outputs digital signals to the digital baseband section 110 as known in the art.

[0015] Gain/Phase Imbalance Correction

[0016] To write the quadrature modulation and demodulation concisely, we can represent a complex envelope as a two-dimensional column vector containing the real and imaginary components. Then the CDMA signal spread by a complex spreading sequence at the transmitter baseband output can be represented by the following matrix equation. Here we ignore the channelization code (w) of the pilot signal without loss of generality.

x=Sd,

[0017] $x = \begin{bmatrix} x_{I} \\ x_{Q} \end{bmatrix}$

[0018] is the transmitted chip signal, $S = \begin{bmatrix} p_{I} & {- p_{Q}} \\ p_{Q} & p_{I} \end{bmatrix}$

[0019] is the spreading sequence matrix, p_(I) and P_(Q) are the real and imaginary part of the complex spreading sequences, $d = \begin{bmatrix} d_{I} \\ d_{Q} \end{bmatrix}$

[0020] is the data symbol. For the pilot, $d = {\begin{bmatrix} 1 \\ 0 \end{bmatrix}.}$

[0021] The received signal is corrupted by a fading channel and interference.

y=Cx+n, $y = \begin{bmatrix} y_{I} \\ y_{Q} \end{bmatrix}$

[0022] is the received signal, $C = {a\begin{bmatrix} {\cos \quad \varphi} & {{- \sin}\quad \varphi} \\ {\sin \quad \varphi} & {\cos \quad \varphi} \end{bmatrix}}$

[0023] is the fading channel response matrix, a is the channel gain, φ is the channel phase rotation, and n is the interference.

[0024] The quadrature demodulator introduces dc offset and gain and phase offset. The real and imaginary parts of the quadrature demodulator output are denoted as follows: ${y_{dI} = {{g_{I}{\cos \left( {- \frac{\theta}{2}} \right)}y_{I}} + {g_{I}{\sin \left( {- \frac{\theta}{2}} \right)}y_{Q}} + o_{I}}},$

$y_{dQ} = {{g_{Q}{\cos \left( {\frac{\pi}{2} + \frac{\theta}{2}} \right)}y_{I}} + {g_{Q}{\sin \left( {\frac{\pi}{2} + \frac{\theta}{2}} \right)}y_{Q}} + {o_{Q}.}}$

[0025] This quadrature demodulator operation can be represented concisely by the following matrix equation.

y _(d)=ΓΦ(y+o) $\Phi = {{\Phi \left( \frac{\theta}{2} \right)} = {\frac{1}{{\cos \frac{\theta}{2}} - {\sin \frac{\theta}{2}}}\begin{bmatrix} {\cos \frac{\theta}{2}} & {{- \sin}\frac{\theta}{2}} \\ {{- \sin}\frac{\theta}{2}} & {\cos \frac{\theta}{2}} \end{bmatrix}}}$ $\Gamma = \begin{bmatrix} g_{I} & 0 \\ 0 & g_{Q} \end{bmatrix}$

[0026] Here $o = \begin{bmatrix} o_{I} \\ o_{Q} \end{bmatrix}$

[0027] is the DC offset vector, θ is the phase splitter error and g_(I), g_(Q) are the gains of the real and imaginary components, respectively. For symmetry, the phase splitter error has been distributed equally between I and Q channels. For power conservation, let us assume

g _(I) ² =g _(Q) ²=2

[0028] We can define the gain ratio γ and gain imbalance ε as ${\gamma = \frac{g_{I}}{g_{Q}}},{ɛ = {\gamma - 1}}$

[0029] Then, we can represent each gain in terms of γ: ${g_{I} = {\gamma \sqrt{\frac{2}{1 + \gamma^{2}}}}},{g_{Q} = {\sqrt{\frac{2}{1 + \gamma^{2}}}.}}$

[0030] Now in order to overcome the fading channel represented by a matrix C, the digital signal processor 102 in the receiver corrects the channel phase rotation φ and amplifies the amplitude by the channgel gain a, after despreading. Note that other types of weighting than scaling by the channel gain can be used to improve the performance. The quadrature despreading and the channel phase correction and weighting can be represented as

C ^(T) S ^(T) y _(d) =C ^(T) S ^(T)ΓΦ(CSd+n+o).

[0031] Then, ignoring the DC offset (o=0) and assuming the unit channel gain (a=1), we can represent the receiver output y_(d) with the overall system matrix H as follows:

y _(d) =Hd+m, m=C ^(T) S ^(T) ΓΦn,

[0032] $\begin{matrix} {{H = \quad {{C^{T}S^{T}{\Gamma\Phi}\quad {CS}} = {{g_{I}{R\left( {- \frac{\theta}{2}} \right)}} + {g_{Q}{R\left( \frac{\theta}{2} \right)}} + {p_{I}{p_{Q}\begin{bmatrix} {{\left( {g_{I} + g_{Q}} \right)\sin \frac{\theta}{2}} - {\left( {g_{I} - g_{Q}} \right)\cos \frac{\theta}{2}}} \\ {{{- \left( {g_{I} - g_{Q}} \right)}\cos \frac{\theta}{2}} - {\left( {g_{I} + g_{Q}} \right)\sin \frac{\theta}{2}}} \end{bmatrix}}}}}},} \\ {{and}\quad} \\ {{R(\theta)} = \quad \begin{bmatrix} {\cos \quad \theta} & {{- \sin}\quad \theta} \\ {\sin \quad \theta} & {\cos \quad \theta} \end{bmatrix}} \end{matrix}$

[0033] is the rotation matrix.

[0034] Note that m is colored noise. If n has white spectrum with variance n0, the covariance matrix of m is equal to

Δ_(m) =n ₀Γ²ΦΦ^(T).

[0035] Then, if p_(I) and p_(Q) are uncorrelated as in typical systems, the average value of the despread pilot is given by $\begin{matrix} {\alpha = {{E\left\lbrack {H\begin{bmatrix} 1 \\ 0 \end{bmatrix}} \right\rbrack} = {\begin{bmatrix} {\left( {g_{I} + g_{Q}} \right)\cos \frac{\theta}{2}} \\ {\left( {g_{I} - g_{Q}} \right)\sin \frac{\theta}{2}} \end{bmatrix}.}}} & {{Equation}\quad 1} \end{matrix}$

[0036] On the other hand, for the I/Q swapped spreading sequence, the overall system can be represented by the following:

y _(s) =H _(s) d+m, m=C ^(T) S _(s) ^(T) ΓΦn $H_{s} = {{C^{T}S_{s}^{T}{\Gamma\Phi}\quad {CS}} = {{{- g_{I}}{R_{s}\left( \frac{\theta}{2} \right)}} + {g_{Q}{R_{s}\left( {- \frac{\theta}{2}} \right)}} + {p_{I}{p_{Q}\begin{bmatrix} {\left( {g_{I} + g_{Q}} \right)\cos \frac{\theta}{2}} & {{- \left( {g_{I} - g_{Q}} \right)}\sin \frac{\theta}{2}} \\ {\left( {g_{I} - g_{Q}} \right)\sin \frac{\theta}{2}} & {\left( {g_{I} + g_{Q}} \right)\cos \frac{\theta}{2}} \end{bmatrix}}}}}$ $S_{s} = \begin{bmatrix} p_{Q} & {- p_{I}} \\ p_{I} & p_{Q} \end{bmatrix}$

[0037] is the I/Q-swapped spreading sequence matrix, ${R_{s}(\theta)} = \begin{bmatrix} {\sin \quad \theta} & {\cos \quad \theta} \\ {\cos \quad \theta} & {{- \sin}\quad \theta} \end{bmatrix}$

[0038] Then, the average of the pilot despread by the I/Q-swapped spreading sequence is given by $\begin{matrix} {\beta = {{E\left\lbrack {H_{s}\begin{bmatrix} 1 \\ 0 \end{bmatrix}} \right\rbrack} = {\begin{bmatrix} {- \left( {g_{I} + g_{Q}} \right)} & {\sin \frac{\theta}{2}} \\ {- \left( {g_{I} - g_{Q}} \right)} & {\cos \quad \frac{\theta}{2}} \end{bmatrix}.}}} & {{Equation}\quad 2} \end{matrix}$

[0039] From equation (1) and (2), we can express the estimation of mismatch in gain and phase as $\begin{matrix} {{\hat{\gamma} = \quad {\frac{g_{I}}{g_{Q}} = \frac{\alpha_{I} - \beta_{Q}}{\alpha_{I} + \beta_{Q}}}},} \\ {\hat{\theta} = \quad {{2\quad \tan^{- 1}\frac{\alpha_{Q} - \beta_{I}}{\alpha_{I} - \beta_{Q}}} = {{- 2}\quad \tan^{- 1}{\frac{\alpha_{Q} + \beta_{I}}{\alpha_{I} + \beta_{Q}}.}}}} \end{matrix}$

[0040] Based on the estimated γ and θ, the gain and phase correction block in FIG. 1 implements the following matrix multiplication. ${X\left( {\gamma,\theta} \right)} = {{\Phi^{- 1}\Gamma^{- 1}} = {{{\Phi \left( {- \frac{\theta}{2}} \right)}\Gamma^{- 1}} = {\frac{1/g_{Q}}{{\cos \left( {\theta/2} \right)} + {\sin \left( {\theta/2} \right)}}\begin{bmatrix} \frac{\cos \left( {\theta/2} \right)}{\gamma} & {\sin \left( {\theta/2} \right)} \\ \frac{\sin \left( {\theta/2} \right)}{\gamma} & {\cos \left( {\theta/2} \right)} \end{bmatrix}}}}$

 ŷ _(d) =Xy _(d)

[0041] This method lends itself well to the Rake receiver wherein multiple demodulator output are phase-corrected, weighted and combined. A channel estimation algorithm provides an estimation of the channel gain and phase rotation. Each demodulator with index i is associated with a pair of the pilot symbol despread by a normal spreading sequence and the pilot symbol despread by the I/Q-swapped spreading sequence: α_(i) and β_(i). Then, the maximal ratio combining is applied to each despread pilot pair (α_(i), β_(i)) from F demodulators: ${\alpha = {{\sum\limits_{f = 1}^{F}\quad \alpha_{i}} = \begin{bmatrix} \alpha_{I} \\ \alpha_{Q} \end{bmatrix}}},{\beta = {{\sum\limits_{f = 1}^{F}\quad \beta_{i}} = {\begin{bmatrix} \beta_{I} \\ \beta_{Q} \end{bmatrix}.}}}$

[0042] This maximal ratio combining increases the reliability of the gain and phase mismatch estimation in the presense of multipath fading channel.

[0043] The proposed method can be simplified in some applications. For instance, in a closed-loop controlled gain/phase correction wherein only the sign/polarity of the gain/phase error matters, the following signals can be used for driving the error control loop:

{circumflex over (γ)}_(e)=α_(I)−β_(Q),

{circumflex over (θ)}_(e)=α_(Q)+β_(I).

[0044] Furthermore, the propsed method can be implemented in an iterative way. The gain/phase mismatch estimation relies upon a correct channel estimation while the channel estimation in turn is degraded by the gain/phase mismatch. First, a raw channel estimation is used to estimate the gain/phase mismatch. The gain/phase mismatch is corrected according to the initial estimation. After the correction, the channel response now can be estimated with a better accuracy. Then, the gain/phase mismatch can be estimated with a better accuracy by the improved channel estimation. In this iterative fashion, the gain/phase estimation can be made robust to the channel estimation error.

[0045] In an actual implementation of the correction block as shown in FIG. 2, the common gain part can be omitted and the sinusoid can be generated by a look-up table 202. Look-up table 202 can reside in a Read-Only Memory (ROM) or other storage device. The gain and phase correction circuit 104 inclues first 120 and second 122 input ports, and six multipliers 202-212. A storage device such as a read-only memory (ROM) 202 has four output ports 214, 216, 218, 220 that provide the correct sinusoid to the respective multipliers 202, 204, 206 and 208, responsive to receiving the estimate signal for the gain 222 and phase 224 imbalance. The corrected I signal 124 is provided on a first output port, while the corrected Q signal 126 is provided in a second ouput port.

[0046] In FIG. 3, there is shown a graph showing the mean of the estimator (20*log₁₀E[{circumflex over (γ)}]) versus the true gain offset for a 100 pilot symbol simulation. While FIG. 4 shows a graph highligtening the mean of the phase offset estimator (E[{circumflex over (θ)}]) for a 100 pilot symbol.

[0047] While the preferred embodiments of the invention have been illustrated and described, it will be clear that the invention is not so limited. Numerous modifications, changes, variations, substitutions and equivalents will occur to those skilled in the art without departing from the spirit and scope of the present invention as defined by the appended claims. 

What is claimed is:
 1. A digital baseband circuit, comprising: first and second input ports for receiving digital input signals; a controller coupled to the first and second input for estimating the gain and phase imbalance of the digital input signals.
 2. A digital baseband circuit as defined in claim 1, wherein the controller estimates the gain mismatch as: ${\hat{\gamma} = {\frac{g_{I}}{g_{Q}} = \frac{\alpha_{I} - \beta_{Q}}{\alpha_{I} + \beta_{Q}}}},$

where g_(I), g_(Q) are the gains of the real and imaginary components of the digital input signals, α_(i) is a pilot symbol despread by a normal spreading sequence and is the pilot symbol despread by a IQ-swapped spreading sequence.
 3. A digital baseband circuit as defined in claim 1, wherein the controller comprises a digital signal processor.
 4. A digital baseband circuit as defined in claim 2, wherein the controller estimates the phase mismatch as: ${\hat{\theta} = {{2\quad \tan^{- 1}\frac{\alpha_{Q} - \beta_{I}}{\alpha_{I} - \beta_{Q}}} = {{- 2}\quad \tan^{- 1}\frac{\alpha_{Q} + \beta_{I}}{\alpha_{I} + \beta_{Q}}}}},$

wherein α_(I) and α_(Q) are pilot symbols despread by a normal spreading sequence and β_(I) and β_(Q) are pilot symbols despread by an I/Q-swapped spreading sequence.
 5. A digital baseband circuit as defined in claim 2, further comprising: a gain and phase correction circuit coupled to the first and second input ports.
 6. A digital baseband circuit as defined in claim 5, wherein the gain and phase correction circuit includes first and second multipliers coupled to the first input port and third and fourth multipliers coupled to the second input port.
 7. A digital baseband circuit as defined in claim 6, wherein the gain and phase correction circuit further comprises a look-up-table coupled to the first, second, third and fourth multipliers.
 8. A digital baseband circuit as defined in claim 7, wherein the look-up-table comprises a read-only memory (ROM).
 9. A digital baseband circuit as defined in claim 5, wherein the controller estimates the phase mismatch as: ${\hat{\theta} = {2\quad \tan^{- 1}\frac{\alpha_{Q} - \beta_{I}}{\alpha_{I} - \beta_{Q}}}},$

wherein α_(I) and α_(Q) are pilot symbols despread by a normal spreading sequence and β_(I) and β_(Q) are pilot symbols despread by an I/Q-swapped spreading sequence; and the gain and phase correction circuit uses phase and gain estimates to provide a gain and phase correction to the digital input signals.
 10. A digital baseband circuit as defined in claim 9, wherein the gain and phase correction circuit applies correction to the digital input signals using the formula: ${X\left( {\gamma,\theta} \right)} = {{\frac{1/g_{Q}}{{\cos \left( {\theta/2} \right)} + {\sin \left( {\theta/2} \right)}}\begin{bmatrix} \frac{\cos \left( {\theta/2} \right)}{\gamma} & {\sin \left( {\theta/2} \right)} \\ \frac{\sin \left( {\theta/2} \right)}{\gamma} & {\cos \left( {\theta/2} \right)} \end{bmatrix}}.}$


11. A method for estimating and correcting the gain and phase imbalance of digital signals in a direct sequence code division multiple access (DS-CDMA) system, comprising the steps of: estimating the gain imbalance as follows: ${\hat{\gamma} = {\frac{g_{I}}{g_{Q}} = \frac{\alpha_{I} - \beta_{Q}}{\alpha_{I} + \beta_{Q}}}},$

 where g_(I), g_(Q) are the gains of the real and imaginary components of the digital input signals, α_(i) is a pilot symbol despread by a normal spreading sequence and β_(Q) is the pilot symbol despread by a I/Q-swapped spreading sequence; and estimating the phase imbalance as follows: ${\hat{\theta} = {2\quad \tan^{- 1}\frac{\alpha_{Q} - \beta_{I}}{\alpha_{I} - \beta_{Q}}}},$

 where α_(I) and α_(Q) are pilot symbols despread by a normal spreading sequence and β_(I) and β_(Q) are pilot symbols despread by an I/Q-swapped spreading sequence.
 12. A method as defined in claim 11, further comprising the step of: using the gain and phase imbalance estimates to correct for the gain and phase imbalance in the digital signals, using the formula: ${X\left( {\gamma,\theta} \right)} = {{\frac{1/g_{Q}}{{\cos \left( {\theta/2} \right)} + {\sin \left( {\theta/2} \right)}}\begin{bmatrix} \frac{\cos \left( {\theta/2} \right)}{\gamma} & {\sin \left( {\theta/2} \right)} \\ \frac{\sin \left( {\theta/2} \right)}{\gamma} & {\cos \left( {\theta/2} \right)} \end{bmatrix}}.}$


13. A method as defined in claim 12, wherein the correction of the gain and phase is performed by a gain and phase correction circuit having a plurality of multipliers, and a look-up-table providing the plurality of multipliers gain and phase offset correction information based on gain and phase imbalance information.
 14. A method of estimating the amplitude mismatch (gain imbalance) in a Code Division Multiple Access (CDMA) receiver, comprising the steps of: (a) determining the real component of a pilot signal by a normal spreading sequence; (b) determining the imaginary component of the pilot signal despread by an IQ-swapped spreading sequence; and (c) finding the difference between the real component of the despread pilot signal and the imaginary component of the IQ-swapped pilot signal.
 15. A method as defined in claim 14, wherein steps (a) and (b) are performed by a correlator.
 16. A method as defined in claim 15, wherein step (c) is performed by a digital signal processor.
 17. A method of estimating the phase mismatch (phase imbalance) in a Code Division Multiple Access (CDMA) receiver, comprising the steps of: (a) determining the imaginary component of a pilot signal despread by a spreading sequence; (b) determining the real component of the pilot signal despread by an IQ-swapped spreading sequence; and (d) finding the difference between the imaginary component of the regular despread pilot signal and the real component of the IQ-swapped pilot signal.
 18. A method as defined in claim 17, wherein steps (a) and (b) are performed by a correlator.
 19. A method as defined in claim 18, wherein step (c) is performed by a digital signal processor.
 20. A gain and phase correction circuit, comprising: a first input port for receiving an inphase (I) digital signal; a second input port for receiving a quadrature (Q) phase signal; first, second, third and fourth multipliers, the first and third multipliers having first input ports for receiving the I signal and the second and fourth multipliers having first input ports for receiving the Q signal; and a memory device having first, second, third and fourth output ports, said first output port coupled to a second input port of the first multiplier, said second output port coupled to a second input port of the second multiplier, said third output port coupled to a second input port in the third multiplier, and said fourth output port coupled to a second input port in the fourth multiplier, said memory device having a first input port for receiving a gain imbalance estimate, and a second input port for receiving a phase imbalance input port.
 21. A gain and phase correction circuit as defined in claim 20, wherein the memory device comprises a read-only memory (ROM).
 22. A gain and phase correction circuit as defined in claim 20, further comprising: a fifth multiplier having a first input port for receiving an output from said first multiplier and a second input port for receiving an output from said second multiplier, and having an output port for providing a corrected I signal; and a sixth multiplier having a first input port for receiving an output from said third multiplier and a second input port for receiving an output from said fourth multiplier, and having an output port for providing a corrected Q signal.
 23. A gain and phase correction circuit as defined in claim 20, wherein the I and Q signals are digital signals. 